﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace Maticsoft.Web
{
    public partial class LoginOut : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();//清除验证信息
            HttpContext.Current.Session.Clear();//清除Session内容
            HttpContext.Current.Session.Abandon();//取消当前会话
            Response.Redirect("~/Login.aspx");//注销之后，跳转的页面
        }
    }
}